﻿using System;
using System.Collections.Generic;
using System.Text;
using Sinacor.Infra.UI.Common;

namespace Sinacor.UI.Bovespa.ImportacaoExportacao.Model
{
    [Serializable]
    public class Calendario : BaseModel
    {
        #region Atributos

        private DateTime _dataPregao;

        #endregion

        #region Construtor

        public Calendario() { }

        #endregion

        #region Propriedades

        public DateTime DataPregao
        {
            get
            {
                return _dataPregao;
            }
            set
            {
                _dataPregao = value;
                OnPropertyChanged("DataPregao");
            }
        }

        public string DataFormatada
        {
            get { return _dataPregao.ToShortDateString(); }
        }

        #endregion
    }
}
